import request from '@/utils/request'

// duty
export function getDutyPage(data) {
    return request({
      url: '/duty/page',
      method: 'post',
      data: data
    })
  }
//   export function deleteUser(data) {
//     return request({
//       url: '/duty/delete',
//       method: 'post',
//       params: data
//     })
//   }
  export function addDuty(data) {
    return request({
      url: '/duty/add',
      method: 'post',
      data: data
    })
  }
  export function updateDuty(data) {
    return request({
      url: '/duty/update',
      method: 'post',
      data: data
    })
  }
  